import { createApp } from "vue";
import App from "./App.vue";
import router from "@/router";
import { setupStore } from "@/store";
import { setupDirective } from "@/directive";
import DataVVue3 from "@kjgl77/datav-vue3";
import "@/permission";

// 本地SVG图标
import "virtual:svg-icons-register";

// 国际化
import i18n from "@/lang/index";

// 样式
import "element-plus/theme-chalk/dark/css-vars.css";
import "@/styles/index.scss";
import "uno.css";

const app = createApp(App);
// 全局注册 自定义指令(directive)
setupDirective(app);
// 全局注册 状态管理(store)
setupStore(app);
// import VueGridLayout from 'vue-grid-layout'//引入layout
// import VueGridLayout from "vue-grid-layout";
// 引入 全局注册组件
import CustomEcharts from "@/components/index";
app
  .use(router)
  .use(i18n)
  // .use(VueGridLayout)
  .use(CustomEcharts)
  .use(DataVVue3)
  .mount("#app");
